/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

$panel-toggle-bg-color: #999999;
$toggle-btn-disabled-bg-color: #cccccc;

.dataprep-container {
  overflow: hidden;

  &.error { padding-top: 25px; }

  &.single-workspace {
    .top-section .panel-toggle {
      height: 50px;
      line-height: 50px;
    }

    .dataprep-body.row {
      // height calculations
      // 100vh - height of navbar - top panel - footer
      // 100vh - 50px - 50px - 54px
      height: calc(100vh - 154px);
    }
  }

  .top-section {
    .panel-toggle,
    .top-section-content {
      display: inline-block;
    }

    .panel-toggle {
      width: 25px;
      height: 80px;
      line-height: 80px;
      background-color: $panel-toggle-bg-color;

      &.disabled {
        cursor: not-allowed;
        background: $toggle-btn-disabled-bg-color;
      }
      .panel-button {
        display: inline-block;
        width: 100%;
        height: 100%;
        color: white;
      }

      &:hover {
        background-color: lighten($panel-toggle-bg-color, 10%);
      }
    }

    .top-section-content {
      width: calc(100% - 26px);
    }
  }

  .dataprep-body.row {
    // height calculations
    // 100vh - height of navbar - top panel - footer - tabs
    // 100vh - 50px - 50px - 54px - 30px
    margin-right: 0;
    margin-left: 0;
    height: calc(100vh - 184px);

    .dataprep-main {
      padding: 0;
      height: 100%;
    }
  }
}
